package com.atguigu.gmall.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hello")
public class helloController {

    @GetMapping("h")
    public String h(Model model){
        model.addAttribute("world", "韩玉就是我的全世界");
        return "hello";
    }

}
